package com.tongji.diy.event.furnitureOptimizationEvent
{
	import flash.events.Event;
	import flash.geom.Point;
	import flash.geom.Vector3D;
	
	public class OptimizationAddFurnitureEvent extends Event
	{
		public static const OPTIMIZATION_ADD_FURNITURE:String = "OptimizationAddFurniture";
		public var width:Number,length:Number, heigth:Number, angle:Number;
		public var location:Vector3D;
		public var parentRoomIndex:int = -1;
		public var furnitureIndex:int = -1;
		public var furnitureClass:int = -1;
		
		public function OptimizationAddFurnitureEvent(type:String,location:Vector3D,width:Number,length:Number, heigth:Number , angle:Number, parentRoomIndex:int, furnitureIndex:int,furnitureClass:int,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.width = width;
			this.length = length;
			this.heigth = heigth;
			this.angle = angle;
			this.location = location;
			this.parentRoomIndex = parentRoomIndex;
			this.furnitureIndex = furnitureIndex;
			this.furnitureClass = furnitureClass;
		}
		override public function clone():Event
		{
			return new OptimizationAddFurnitureEvent(type,location,width,length, heigth, angle,parentRoomIndex,furnitureIndex,furnitureClass, bubbles, cancelable);
		}
	}
}